From 0581e7232dc1d5a9583a2191e7ceb391941cd544 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 23 Jul 2007 19:13:04 +0000 Subject: [PATCH] Change third field of ozi tracks to indicate new track. SF 1757463. --- ozi.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ozi.c b/ozi.c index 3ae8a48d4..6bdb42288 100644 --- a/ozi.c +++ b/ozi.c @@ -45,6 +45,7 @@ static route_head *rte_head; static int track_out_count; static int route_out_count; static int route_wpt_count; +static int new_track; static char *snlenopt = NULL; static char *snwhiteopt = NULL; @@ -180,6 +181,7 @@ ozi_track_hdr(const route_head * rte) rte->rte_name ? rte->rte_name : "ComplimentsOfGPSBabel"); track_out_count++; + new_track = 1; } static void @@ -196,8 +198,11 @@ ozi_track_disp(const waypoint * waypointp) alt_feet = METERS_TO_FEET(waypointp->altitude); } - gbfprintf(file_out, "%.6f,%.6f,0,%.0f,%.5f,,\r\n", - waypointp->latitude, waypointp->longitude, alt_feet, ozi_time); + gbfprintf(file_out, "%.6f,%.6f,%d,%.0f,%.5f,,\r\n", + waypointp->latitude, waypointp->longitude, new_track, + alt_feet, ozi_time); + + new_track = 0; } static void -- 2.30.2